{% extends "sidebar_base.html" %}
{% block meta %}<meta name="keywords" content="{% for category in article.categories %}{{ category.name|cut:"za-"|cut:"zz-"|cut:"a-" }},{% endfor %}无疆网络" />{% endblock %}
{% block title_base %}{{ article.title }} - {{ settings.site_name }}{% endblock %}
{% block content_base %}
	<div id="main_content">
		<div class="article_main_content">
			<div class="title_article_main_content">{{ article.title }}</div>
			<div class="content_article_main_content">
				{{ article.content }}
			</div>
			<div class="footer_article_main_content">
				<img src="/static/image/typing-monitor.png" height="10px" width="25px" />
				发表时间：<a href="/{{ article.time_date|date:"m_Y" }}_timedate.html" rel="nofollow">{{ article.time_date|date:"m月d日 Y年" }}</a>
				&nbsp; | &nbsp;
				<img src="/static/image/gdu-check-disk.png" height="10px" width="25px" />
				帖子分类：{% for category in article.categories %}&nbsp;<a href="/{{ category.key.id }}_category.html" rel="nofollow">{{ category.name }}</a>{% endfor %}&nbsp;|
			</div>
		</div>
		<div class="article_main_content overflow_hidden">
			<div class="width_half_full float_left overflow_hidden align_left font_bold">{% if lat_article %}
				<a href="{{ lat_article.key.id }}_article.html">&lt;&nbsp;前一篇 &nbsp; 《{{ lat_article.title }}》</a>
			{% endif %}</div>
			<div class="width_half_full float_right overflow_hidden align_right font_bold">{% if pre_article %}
				<a href="{{ pre_article.key.id }}_article.html">《{{ pre_article.title }}》 &nbsp; 后一篇&nbsp;&gt;</a>
			{% endif %}</div>
		</div>
		{% for comment in comments %}<div class="comment_article">
			<a name="{{ comment.key.id }}"></a>
			<div class="content_comment">{{ comment.content }}</div>
			<div class="foot_comment">
			<a href="#{{ comment.key.id }}">#{{ comment.key.id }}</a>&nbsp;&nbsp;
			<img src="/static/image/java.png" height="10px" width="25px" />
			昵称：
			{% if comment.url %}
				<a href="{{ comment.url }}">{{ comment.nickname }}</a>
			{% else %}
				{{ comment.nickname }}
			{% endif %}
			&nbsp; | &nbsp;<img src="/static/image/gok.png" height="10px" width="25px" />
			发表时间：{{ comment.time_date|date:"m月d日 Y年" }}</div>
		</div>{% endfor %}

		<!-- 评论页面导航 -->
		<div class="article_main_content overflow_hidden">
			{% if next_page %}
				<span class="sided float_left"><a href="{{ path }}?b={{ next_page.key.id }}">上一页</a></span>
			{% endif %}
			{% if pre_page %}
				<span class="sided float_right"><a href="{{ path }}?b={{ pre_page.key.id }}">下一页</a></span>
			{% endif %}
		</div>
		<!-- end 评论页面导航 -->

		<div class="comment_article"><form action="/{{ article.key.id }}_article.html" class="width_full" method="post">
			<div class="width_full"><input type="text" value="{% if user %}{{ user.nickname }}{% else %}登录Google(谷歌)账户才能评论{% endif %}" name="nickname_form" />&nbsp;将要显示的昵称
			{% if user %}
			&nbsp;&nbsp;&nbsp;<a class="sided" href="{{ logout_url }}">退出</a>
			{% else %}
			&nbsp;&nbsp;&nbsp;<a class="sided font_bold" href="{{ login_url }}">您还没有登录 点此登录Google(谷歌)账户</a>
			{% endif %}
			</div>
			<div class="width_full"><input type="text" value="http://" name="url" />&nbsp;您的博客或者web站点&nbsp;(包括 http:// 的完整地址)</div>
			<div class="width_full"><textarea id="comment_textarea" name="content_comment_form"></textarea></div>
			<div class="width_full overflow_hidden">
				<div class="float_left width_half_full">
					<input type="checkbox" id="alert_email_checkbox" name="alert_email_checkbox" /><label id="alert_email_label" for="alert_email_checkbox">此贴子有新回复时邮件通知我</label>
					{% for alert_email in article.alert_emails %}
						{% ifequal user.email alert_email %}
							<script type="text/javascript">
								document.getElementById("alert_email_checkbox").style.display = "none";
								document.getElementById("alert_email_label").style.display = "none";
							</script>
							您已经邮件订阅了本篇博客的评论通知
						{% endifequal %}
					{% endfor %}
				</div>
				<div class="float_right width_half_full align_right">
					<input type="submit" class="submit_button" {% if not user %} onclick="alert('没有登录，不能评论！如果已经编写完成评论内容，请复制评论后后再登录，以免丢失！');return false;"{% endif %} value="提 &nbsp; 交" />
				</div>
			</div>
		</form></div>
	</div>
{% endblock %}
